package com.hjc.demo.flink;

import com.google.common.collect.Lists;
import org.apache.flink.streaming.api.datastream.DataStream;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

import java.net.InetAddress;

public class Test {
    public static void main(String[] args) throws Exception {
//        StreamExecutionEnvironment environment = StreamExecutionEnvironment.getExecutionEnvironment();
//        DataStream<String> dataSource =environment.fromCollection(Lists.newArrayList("a","b","c","d","e"));
//        dataSource.print();
//        environment.execute();
//        System.out.println("asdf");
//        System.out.println(InetAddress.getLocalHost().getCanonicalHostName());
        System.out.println(System.getProperties());
    }
}
